<!DOCTYPE html>
<html><head>
  <meta charset="utf-8">
  <title>童老师ThinkPHP交流群：484519446</title>

  <meta name="description" content="Dashboard">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <!--Basic Styles-->
  <link href="__ADMIN__/style/bootstrap.css" rel="stylesheet">
  <link href="__ADMIN__/style/font-awesome.css" rel="stylesheet">
  <link href="__ADMIN__/style/weather-icons.css" rel="stylesheet">

  <!--Beyond styles-->
  <link id="beyond-link" href="__ADMIN__/style/beyond.css" rel="stylesheet" type="text/css">
  <link href="__ADMIN__/style/demo.css" rel="stylesheet">
  <link href="__ADMIN__/style/typicons.css" rel="stylesheet">
  <link href="__ADMIN__/style/animate.css" rel="stylesheet">
  <script src="__ADMIN__/ueditor/ueditor.config.js"></script>
  <script src="__ADMIN__/ueditor/ueditor.all.min.js"></script>
  <script src="__ADMIN__/ueditor/lang/zh-cn.js"></script>

</head>
<body>
<!-- 头部 -->
{include file="public/header" /}
<!-- /头部 -->

<div class="main-container container-fluid">
  <div class="page-container">
    <!-- Page Sidebar -->
    {include file="public/left" /}
    <!-- /Page Sidebar -->
    <!-- Page Content -->
    <div class="page-content">
      <!-- Page Breadcrumb -->
      <div class="page-breadcrumbs">
        <ul class="breadcrumb">
          <li>
            <a href="#">系统</a>
          </li>
          <li>
            <a href="{:url('lst')}">栏目管理</a>
          </li>
          <li class="active">修改栏目</li>
        </ul>
      </div>
      <!-- /Page Breadcrumb -->

      <!-- Page Body -->
      <div class="page-body">

        <div class="row">
          <div class="col-lg-12 col-sm-12 col-xs-12">
            <div class="widget">
              <div class="widget-header bordered-bottom bordered-blue">
                <span class="widget-caption">修改栏目</span>
              </div>
              <div class="widget-body">
                <div id="horizontal-form">
                  <form class="form-horizontal" role="form" action="{:url('Cate/edit')}" method="post">
                    <input type="hidden" name="id" value="{$cates.id}">
                    <div class="form-group">
                      <label  class="col-sm-2 control-label no-padding-right">上级栏目</label>
                      <div class="col-sm-6">
                        <select name="pid" >
                          <option value="0">顶级栏目</option>
                          {volist name="cateres" id="cate"}
                          <option
                                  {if condition="$cates['pid'] eq $cate['id'] "} selected="selected" {/if}
                                  value="{$cate.id}">
                            {if condition="$cate.pid neq 0" }|{/if}
                            <?php echo str_repeat('--',$cate['level']*2) ; ?>
                            {$cate.catename}</option>
                          {/volist}
                        </select>
                      </div>
                      <p class="help-block col-sm-4 red">* 必填</p>
                    </div>

                    <div class="form-group">
                      <label for="catename" class="col-sm-2 control-label no-padding-right">栏目名称</label>
                      <div class="col-sm-6">
                        <input class="form-control" id="catename" placeholder="" name="catename"  value="{$cates.catename}" type="text">
                      </div>
                      <p class="help-block col-sm-4 red">* 必填</p>
                    </div>

                    <div class="form-group">
                      <label for="keywords" class="col-sm-2 control-label no-padding-right">栏目关键词</label>
                      <div class="col-sm-6">
                        <input class="form-control" id="keywords" placeholder="" name="keywords" value="{$cates.keywords}"  type="text">
                      </div>
                      <p class="help-block col-sm-4 red">* 必填</p>
                    </div>

                    <div class="form-group">
                      <label for="desc" class="col-sm-2 control-label no-padding-right">栏目描述</label>
                      <div class="col-sm-6">
                        <input class="form-control" id="desc" placeholder="" name="desc"  value="{$cates.desc}" type="text">
                      </div>
                      <p class="help-block col-sm-4 red">* 必填</p>
                    </div>
                    <div class="form-group">
                      <label for="content" class="col-sm-2 control-label no-padding-right">内容</label>
                      <div class="col-sm-6">
                        <textarea name="content" id="content" >{$cates.content}</textarea>
                      </div>
                      <p class="help-block col-sm-4 red">* 必填</p>
                    </div>

                    <div class="form-group">
                      <label  class="col-sm-2 control-label no-padding-right">栏目类型</label>
                      <div class="col-sm-6">
                        <label>
                          <input {if condition="$cates.type eq 1"} checked="checked" {/if} name="type" type="radio"   value="1">
                          <span class="text">文章列表 </span>
                        </label>
                        <label>
                          <input {if condition="$cates.type eq 2" } checked="checked" {/if} name="type" type="radio"  value="2">
                          <span class="text">单页 </span>
                        </label>
                        <label>
                          <input {if condition="$cates.type eq 3" } checked = "checked" {/if} name="type" type="radio"  value="3">
                          <span class="text">图片列表 </span>
                        </label>
                      </div>
                    </div>

                    <div class="form-group">
                      <label  class="col-sm-2 control-label no-padding-right">推荐到首页</label>
                      <div class="col-sm-6">
                        <label style="margin-right:15px;">
                          <input {if condition="$cates['rec_index'] eq 1"} checked="checked" {/if}  name="rec_index" type="radio" value="1">
                          <span class="text">是 </span>
                        </label>
                        <label style="margin-right:15px;">
                          <input {if condition="$cates['rec_index'] eq 0"} checked="checked" {/if}   name="rec_index" type="radio" value="0">
                          <span class="text">否 </span>
                        </label>
                      </div>
                      <p class="help-block col-sm-4 red">* 必填</p>
                    </div>

                    <div class="form-group">
                      <label  class="col-sm-2 control-label no-padding-right">推荐到底部</label>
                      <div class="col-sm-6">
                        <label style="margin-right:15px;">
                          <input {if condition="$cates['rec_bottom'] eq 1"} checked="checked" {/if}  name="rec_bottom" type="radio" value="1">
                          <span class="text">是 </span>
                        </label>
                        <label style="margin-right:15px;">
                          <input {if condition="$cates['rec_bottom'] eq 0"} checked="checked" {/if}  name="rec_bottom" type="radio" value="0">
                          <span class="text">否 </span>
                        </label>
                      </div>

                    <div class="form-group">
                      <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-default">保存信息</button>
                      </div>
                    </div>
                  </form>
                </div>
              </div>
            </div>
          </div>
        </div>

      </div>
      <!-- /Page Body -->
    </div>
    <!-- /Page Content -->
  </div>
</div>

<!--Basic Scripts-->
<script src="__ADMIN__/style/jquery_002.js"></script>
<script src="__ADMIN__/style/bootstrap.js"></script>
<script src="__ADMIN__/style/jquery.js"></script>
<!--Beyond Scripts-->
<script src="__ADMIN__/style/beyond.js"></script>
<script type="text/javascript">
    UE.getEditor('content',{initialFrameWidth:685,initialFrameHeight:400});
</script>


</body>
</html>